from appium.webdriver.common.appiumby import AppiumBy

from base.add_shopping_cart_base import AddShoppingCartBase


class AddShoppingCartPage(AddShoppingCartBase):
    def add_shopping_click(self,driver):
        add_shopping_xpath=self.add_shopping()
        self.click_new(driver,AppiumBy.XPATH,add_shopping_xpath)

    def select_good_type_click(self,driver):
        select_good_type_xpath=self.select_good_type()
        self.click_new(driver,AppiumBy.XPATH,select_good_type_xpath)

    def select_good_type_okay_click(self,driver):
        select_good_type_okay_xpath=self.select_good_type_okay()
        self.click_new(driver,AppiumBy.XPATH,select_good_type_okay_xpath)